package com.xrkol.sharelib.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * 店鋪
 * @author dipei.ruan
 *
 */
@Entity
@Table
public class Shop extends BasicEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
	@GeneratedValue(generator = "hibernate-uuid")
	private String id;
	
	private User owner;
	//店铺公告
	private String announcement;
	//店铺评分
	private double rank;
	//营业状态
	private ShopStatus status;
	//店铺类型
	private ShopType type;
	//营业开始时间
	private Date startTime;
	//营业结束时间
	private Date endTime;
	

	//TODO 加入微信地图标识
	private String address;
	
	//手机
	private Integer cellPhone;
	
	//固定电话
	private String phone;
	
	//外送费
	private Integer deliverPrice;
	
	//免邮费
	private Integer avoidPrice; 
	
	//TODO 微信地图 服务半径
	private Integer serviceArea;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAnnouncement() {
		return announcement;
	}

	public void setAnnouncement(String announcement) {
		this.announcement = announcement;
	}

	public double getRank() {
		return rank;
	}

	public void setRank(double rank) {
		this.rank = rank;
	}

	public ShopStatus getStatus() {
		return status;
	}

	public User getOwner() {
		return owner;
	}
	
	public void setOwner(User owner) {
		this.owner = owner;
	}
	
	public void setStatus(ShopStatus status) {
		this.status = status;
	}

	public ShopType getType() {
		return type;
	}

	public void setType(ShopType type) {
		this.type = type;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getCellPhone() {
		return cellPhone;
	}

	public void setCellPhone(Integer cellPhone) {
		this.cellPhone = cellPhone;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getDeliverPrice() {
		return deliverPrice;
	}

	public void setDeliverPrice(Integer deliverPrice) {
		this.deliverPrice = deliverPrice;
	}

	public Integer getAvoidPrice() {
		return avoidPrice;
	}

	public void setAvoidPrice(Integer avoidPrice) {
		this.avoidPrice = avoidPrice;
	}

	public Integer getServiceArea() {
		return serviceArea;
	}

	public void setServiceArea(Integer serviceArea) {
		this.serviceArea = serviceArea;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}


}
